def get_statistic(region, indicator):
    if region == "呼和浩特市":
        hohhot_data = {"总人口": 289.7}
        return hohhot_data.get(indicator, None)
    elif region == "包头市":
        baotou_data = {"GDP": 3000}
        return baotou_data.get(indicator, None)

    return None

# 传递关键字实参
print(get_statistic(indicator="总人口", region="呼和浩特市"))
# 首先传递位置实参，然后传递关键字实参
print(get_statistic("呼和浩特市", indicator="总人口"))
